31 TT = 12:BT = 24: GOSUB 291: GOSUB 301: VTAB 13: GOSUB 341:W = 38:B = 10:T = 3:L = 1:X = 1: GOSUB 451: IF E = 1 THEN GOSUB 311: PRINT "Please type PRINT and something": PRINT "inside quotations.": PRINT "Always remember to press RETURN.": GOTO 31
41 BS = X: GOSUB 491: ON E = 1 GOTO 31
51 GOSUB 451: IF E = 1 THEN GOSUB 311: PRINT "You typed "; MID$ (BU$,BS);".": PRINT "Don't be shy. Please type": PRINT "PRINT and a word inside": PRINT "quotations.": GOTO 31
61 GOSUB 521: ON E = 1 GOTO 31: GOSUB 541: ON E = 1 GOTO 31: GOSUB 581: ON E = 1 GOTO 31:LE = SL -(X +1)
71 VP = INT( LEN(AN$)/40): VTAB 14 +VP: PRINT MID$ (AN$,X +1,LE);: GOSUB 311: PRINT "You did very well, ";NA$".": PRINT "Would you like to practice using": PRINT "the PRINT statement again? (Y/N)";
81 CP = 1: GOSUB 341: IF AN$ = "" THEN VTAB 6: HTAB 33: CALL -958: GOTO 81
91 IF ASC(AN$) < >89 AND ASC(AN$) < >78 THEN VTAB 6: HTAB 33: CALL -958: GOTO 81
101 CP = 0: IF ASC(AN$) = 89 THEN TT = 15:BT = 24: GOSUB 291: GOSUB 311: HTAB L: VTAB T +1: PRINT "Okay, type PRINT and follow it": PRINT "with a literal quote.": PRINT "(Remember to press RETURN)": GOTO 21
121 TT = 15:BT = 24: GOSUB 291: GOSUB 301: VTAB 16: GOSUB 341:W = 38:B = 10:T = 3:L = 1:X = 1: GOSUB 451: IF E = 1 THEN GOSUB 311: PRINT "Please type PRUNT and a number.": PRINT "Then press RETURN. Try again.": GOTO 121
131 BS = X: IF MID$ (AN$,X,5) < >"PRUNT" THEN GOSUB 311: PRINT "You typed "; MID$ (BU$,BS);".": PRINT "You should type PRUNT 50": PRINT "one time in order to see what": PRINT "an error message looks like.": PRINT "Please try again.": GOTO 121
521 E = 0: IF MID$ (AN$,X,1) = CHR$(34) THEN RETURN
531 E = 1: GOSUB 311: PRINT "You typed "; MID$ (BU$,BS);".": PRINT "You forgot to use a quotation": PRINT "mark (" CHR$(34)") after the PRINT": PRINT "statement. Please try again.": RETURN
541 E = 0:SL = X +1
551 ON SL > LEN(AN$) GOTO 571: IF MID$ (AN$,SL,1) < > CHR$(34) THEN SL = SL +1: GOTO 551
561 IF MID$ (AN$,SL,1) = CHR$(34) THEN RETURN
571 E = 1: GOSUB 311: PRINT "You typed "; MID$ (BU$,BS);".": PRINT "Although it's not required, we'd": PRINT "like you to end your statement": PRINT "with a second "; CHR$(34);" mark. Try again.": RETURN
581 E = 0: IF SL > = X +2 THEN RETURN
591 E = 1: GOSUB 311: PRINT "You typed "; MID$ (BU$,BS);".": PRINT "It would help for now if you": PRINT "would enclose something inside": PRINT "the quotations. Try again.": RETURN